package com.baige.service.statistic.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商家每天统计
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("merchant_statistic_day")
public class MerchantStatisticDay extends Model<MerchantStatisticDay> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 商家id
     */
    @TableField("merchant_id")
    private String merchantId;
    /**
     * 租赁订单数
     */
    @TableField("rent_order_count")
    private Integer rentOrderCount;
    /**
     * 续租订单数
     */
    @TableField("relet_order_count")
    private Integer reletOrderCount;
    /**
     * 购买订单数
     */
    @TableField("buy_order_count")
    private Integer buyOrderCount;
    /**
     * 租金收益
     */
    @TableField("rent_earnings_amount")
    private BigDecimal rentEarningsAmount;
    /**
     * 物流收益
     */
    @TableField("logistics_earnings_amount")
    private BigDecimal logisticsEarningsAmount;
    /**
     * 卖包收益
     */
    @TableField("buy_earnings_amount")
    private BigDecimal buyEarningsAmount;
    /**
     * 统计日期
     */
    @TableField("statistic_date")
    private String statisticDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
